"use strict";
//如何定义出一个数组，里面存放对象？
let products = [
    { id: 1, name: "小米", price: 1200, status: true, type: { id: 1, name: "家用电器", showMessage: function () { } } },
    { id: 1, name: "小米", price: 1200, status: true, type: null, msg: "123" },
];
const product = products[0];
// for (const item of products) {
//     console.log(item.type.name);
// }
